package com.yjy.workproject.controller;

import com.yjy.workproject.result.Result;
import com.yjy.workproject.result.ResultUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "test", method = {RequestMethod.GET,RequestMethod.POST})
public class TestController {

    @RequestMapping(value = "method", method = RequestMethod.GET)
    public Result<String> method(){
        return ResultUtil.success("你是我的小可爱");
    }
}
